home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / vol7n7.arc / TOUCH.DOC < prev   
Text File  |  1988-03-14  |  1KB  |  37 lines

  1.  
  2. TOUCH
  3. Command
  4.  
  5. Michael J. Mefford            1988 No. 7 (Utilities)
  6.  
  7.  
  8. Purpose:    Changes the DOS date and/or time designation of a file or 
  9. group of files either to the current system values or to user-designated 
  10. values.
  11.  
  12. Format:    TOUCH filespec [/D date] [/T time]
  13.  
  14. Remarks:    Entered without any arguments, TOUCH displays a help screen
  15. showing its syntax.  If given a filespec but neither of the optional switches
  16. (/D or /T), TOUCH updates the designated file to the current system date and
  17. time.  Note that the standard DOS filename wild cards (* and ?) are supported,
  18. so TOUCH can operate on groups of files.
  19.  
  20.     The optional /D date switch permits entry a user-selected date in the
  21. customary DOS mm-dd-yy format.  If desired, the hyphen delimiters may be
  22. replaced by forward slashes (/), and the year may be entered either in full 
  23. form (e.g. 1988) or in abbreviated (88) form.  TOUCH checks that each of the
  24. three fields is filled with a non-zero value, but does not check the validity 
  25. of a date (e.g. 2/31/88).  Legal DOS years are from 1980 to 2099.
  26.  
  27.     The optional /T time switch permits entry of a user-specified time, in
  28. hours:minutes:seconds.  If the minutes and/or seconds parameters are omitted
  29. TOUCH will set them to 0.  Hours should be entered in military (24-hour) 
  30. format.
  31.     Note:  The following batch file, TEST.BAT, can be used to cause a DIR
  32. listing to leave the time field blank:
  33.  
  34. TIME 0
  35. TOUCH TEST.BAT
  36. DIR TEST.BAT
  37.